#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int i = 0;
	scanf("%d", &i);
	int a, b;
	a = i / 100;
	i= i % 100;	
	for (int x = 0; x < a; x++)
	{
		printf("B");
	}
	b = i / 10;
	i = i % 10;
	for (int x = 0; x < b; x++)
	{
		printf("S");
	}
	for (int x = 1; x <= i; x++)
	{
		printf("%d",x);
	}
	return 0;
}